const { merge } = require('webpack-merge');
const baseConf = require('./webpack.base.conf.js')
const HttpWebpackPlugin = require("html-webpack-plugin")
console.log(HttpWebpackPlugin)
const config = merge(baseConf,{
	mode:"development",
	devServer:{
		port:"8000",
		liveReload:true,
		// https:false,
		// proxy:{
		//   '/api':{
		//       target:"",
		//       pathRewrite:{
		//           '^/api':''
		//       },
		//       changeOrigin:true
		//   }
		// }
	},
	plugins:[
		new HttpWebpackPlugin({
			template:"./index.html",
			title:"webpack学习笔记"
		})
	]
})
module.exports = config;